﻿<%@ Application Language="C#" %>

<script runat="server">

    void Application_Start(object sender, EventArgs e)
    {
        ZhiAo.WebLib.Data.DB.StaticConnectionString = ConfigurationSettings.AppSettings["connection"].ToString();

        ZhiAo.CoreLibrary.PlatformInfo.DBType = ZhiAo.CoreLibrary.DBType.Oracle;
        if (ConfigurationSettings.AppSettings["conntype"] != null)
        {
            if (ConfigurationSettings.AppSettings["conntype"].ToString() == "MsSql")
            {
                ZhiAo.CoreLibrary.PlatformInfo.DBType = ZhiAo.CoreLibrary.DBType.SqlServer;
            }
        }

        //Global.InitFramework();
        //加载所有的站点到缓存中
        //GlobalCache.LoadStations();
    }
    
    void Application_End(object sender, EventArgs e) 
    {
    }
        
    void Application_Error(object sender, EventArgs e) 
    { 
    }

    void Session_Start(object sender, EventArgs e) 
    {
    }

    void Session_End(object sender, EventArgs e) 
    {

    }
       
</script>
